package com.ehotting.eaf.core.domain.system.api;

import com.ehotting.eaf.core.annotation.Excel;
import com.ehotting.eaf.core.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 用户公私钥对象 user_rsa
 * 
 * @author edsta
 * @date 2023-03-30
 */
public class UserRsa extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long userId;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String rsaPublicKey;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String rsaPrivateKey;

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setRsaPublicKey(String rsaPublicKey) 
    {
        this.rsaPublicKey = rsaPublicKey;
    }

    public String getRsaPublicKey() 
    {
        return rsaPublicKey;
    }
    public void setRsaPrivateKey(String rsaPrivateKey) 
    {
        this.rsaPrivateKey = rsaPrivateKey;
    }

    public String getRsaPrivateKey() 
    {
        return rsaPrivateKey;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("userId", getUserId())
            .append("rsaPublicKey", getRsaPublicKey())
            .append("rsaPrivateKey", getRsaPrivateKey())
            .toString();
    }
}
